/*
 * @Author: zqx me_zqx@163.com
 * @Date: 2025-05-19 10:07:19
 * @LastEditors: zqx me_zqx@163.com
 * @LastEditTime: 2025-08-22 15:41:53
 * @FilePath: /XMate-h5/src/sentryTool.js
 * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 */
import * as Sentry from "@sentry/vue";
const dsn = "https://61f3e918b51d4ffd8ecf1bfed223d892@sentry.x-mate.com/7";
export default function initSentry(app) {
  console.log("initSentry");
  Sentry.init({
    app,
    dsn,
    _experiments: { enableLogs: true },
    tracesSampleRate: 1.0,
    sendDefaultPii: true,
    environment: import.meta.env.VITE_ENV
  });

  Sentry.addBreadcrumb({
    category: "auth",
    message: "[comminInfo] start" + localStorage.getItem("yxt-userInfo"),
    level: "info"
  });
}
